<?php
/**
 * Desc
 * @description Holp You Do Good But Not Evil
 * @copyright   Copyright 2014-2015 <ycchen@iwshop.cn>
 * @license     LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @author      Chenyong Cai <ycchen@iwshop.cn>
 * @package     Wshop
 * @link        http://www.iwshop.cn
 */

//if(is_dir(dirname(__FILE__) . '/install/') && !is_file(dirname(__FILE__) . '/install/.lock')){
//    header('Location:./install/');
//    die();
//}

date_default_timezone_set('PRC');

ini_set('display_errors', 'On');

error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_WARNING);

header("Content-type:text/html;charset=utf-8");

// Config
require_once 'config/config.php';

// ClassLoader
require_once 'lib/ClassLoader.php';

// App
require_once 'system/App.php';

// Contoller
require_once 'system/Controller.php';

// Model
require_once 'system/Model.php';

// Smarty
require_once 'lib/Smarty/Smarty.class.php';

$App = App::getInstance();


// @see URL /?/Controller/Action/@queryString
// @see https://www.processon.com/diagraming/54d9e613e4b0105cbf1b0ab0

$App->parseRequest();

